Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dual command hook #20

Merged
merged 14 commits into from
Nov 23, 2023
Merged

Dual command hook #20

merged 14 commits into from
Nov 23, 2023

Conversation

psionic-k
Copy link
Contributor

@chuntaro Feel free to check these commits and features. I'll move this PR out of draft when I'm done. Please let me know if you decide to change history.

I'm adding features that I just finished developing with the command-log package. The changes are mostly focused at making it easier to show either commands that were issued or commands they delegated out to, helping to illustrate what's happening versus what the binding is.

I'm also fixing some bugs such as task bar pollution from #19

Because I commonly get no reply when working on packages, if I haven't heard anything in about a month I'll presume it's better to detach and take over maintenance.

This prevents the task bars from leaping into the foreground and creating tons
of windows that annoy the user
Setting the frame attributes wasn't consistently achieving the intent.
@psionic-k psionic-k marked this pull request as ready for review November 21, 2023 06:40
@psionic-k
Copy link
Contributor Author

This PR is ready for review.

this makes it easier for users to ignore vast swaths of commands

Signed-off-by: Psionik K <[email protected]>
This enables upstream logic to dictate downstream behavior

Signed-off-by: Psionik K <[email protected]>
Reading command keys post hook failed for C-g.  It is frequently nil in the post
hook.

Signed-off-by: Psionik K <[email protected]>
@psionic-k psionic-k force-pushed the dual-command-hook branch 2 times, most recently from 853effe to b5d600f Compare November 22, 2023 14:27
@psionic-k
Copy link
Contributor Author

バク が見付かして アプディト しました.

I found a bug and force pushed my branch

The value of `this-command` is not updated by every bound command.  Commands
such as `counsel-M-x` and `universal-argument` do not update `this-command` and
so we must use the value of `this-command` we stored during the pre-command hook.

Signed-off-by: Psionik K <[email protected]>
This one kind of confused me

Signed-off-by: Psionik K <[email protected]>
Signed-off-by: Psionik K <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants